package com.stylefeng.guns.modular.system.service;

import com.stylefeng.guns.common.persistence.model.ContestPoints;
import com.stylefeng.guns.common.persistence.model.ContestRule;
import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.common.persistence.model.Dict;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 竞赛调考积分 服务类
 * </p>
 *
 * @author jondai
 * @since 2018-01-08
 */
public interface IContestRuleService extends IService<ContestRule> {

    public List<ContestRule> getWinRules(String companyLevelCode,String contestLevelCode);

    public List<ContestRule> getContestRules(String companyLevelCode);

    void calIntegral(ContestPoints contestPoints, Map<String, List<Dict>> dictMap);

    Double getIntegral(String companyLevelCode, String contestLevelCode, String winLevelCode);
}
